<style>
    body {
        background-color: #f9f9f9;
    }
    .listTd td {
        text-align: center;
        border: 1px solid #ddd;
    }
    .modifyStatus {
        cursor:pointer;
    }
    #title .bookName {
        font-weight: bold;
        font-size: 18px;
    }
</style>
<script>
</script>
<form id="apply_Plan_form" method="post">
        {% if data is not empty %}
            <div id="title">
                <span class="bookName">《{{ bookName }}》</span>
            </div>
            <div>
                {% for item in data %}
                    <table id="applyPlanList" class="table table-hover">
                        <tr class="info listTitle">
                            <th>教学进度：</th>
                        </tr>
                        <tr class="info listTitle">
                            <td style="text-align: left">{{ item['sProgress'] }}</td>
                        </tr>
                        <tr class="info listTitle">
                            <th>录入需求：</th>
                        </tr>
                        <tr class="info listTitle">
                            <td style="text-align: left">{{ item['sDemand'] }}</td>
                        </tr>
                        <tr class="info listTitle">
                            <th>申请开始时间：{{ item['sStartDate'] }}</th>
                        </tr>
                        {#<tr class="listTd">#}
                        {#<td style="text-align: left"></td>#}
                        {#</tr>#}
                        <tr class="info listTitle">
                            <th>申请结束时间：{{ item['sEndDate'] }}</th>
                        </tr>
                        <tr class="info listTitle">
                            <th>计划开始时间：{{ item['sRealStartDate'] }}</th>
                        </tr>
                        <tr class="info listTitle">
                            <th>计划结束时间：{{ item['sRealEndDate'] }}</th>
                        </tr>
                        <tr class="info listTitle">
                            <th>状态：
                                {% if item['iStatus'] == 0 %}
                                    {% if (power['del'] == true or item['isCreateMan'] == 1) and item['sRealEndDate'] is empty %}
                                        <a style="color: red" class="modifyStatus btn btn-default btn-sm" id="checkDel_{{ item['iId'] }}">取消</a>
                                    {% endif %}
                                    {% if power['check'] == true and item['sRealEndDate'] is not empty and item['isCreateMan'] == 1 %}
                                        <a style="color: green" class="modifyStatus btn btn-default btn-sm" id="checkTrue_{{ item['iId'] }}">同意</a>
                                        <a style="color: blue" class="modifyStatus btn btn-default btn-sm" id="checkFalse_{{ item['iId'] }}">不同意</a>
                                    {% endif %}
                                {% else %}
                                    {{ item['iStatusStr'] }}
                                {% endif %}
                            </th>
                        </tr>
                    </table>
                {% endfor %}
            </div>
        {% endif %}
</form>